package com.xjtu.weixin.controller.attachment;

import me.chanjar.weixin.mp.api.WxMpMassMessageService;
import me.chanjar.weixin.mp.api.WxMpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.multipart.MultipartFile;

/**
 * 媒体Controller
 *
 * @author 杨凯
 * @create 2018-08-29 14:37
 **/
@Controller
@RequestMapping("/attachment")
public class AttachmentController {


	@Autowired
	private WxMpService wxMpService;


	/**
	 * 文件列表页面
	 * @return
	 */
	@GetMapping
	public String index(){
		return "admin/attachment/attachment-list";
	}



	/**
	 * 附件上传
	 * @return
	 */
	@PostMapping
	public String attachmentUpload(MultipartFile[] files){
		//语音消息
		final WxMpMassMessageService massMessageService = wxMpService.getMassMessageService();

		return "";
	}

}
